package com.school.basic.service;


import com.school.basic.entity.TeacherInfo;
import org.springframework.data.domain.Page;

import java.util.List;

public interface TeacherInfoService {
    // 新增
    TeacherInfo addTeacherInfo(TeacherInfo teacherInfo);
    // 查询所有
    List<TeacherInfo> findAll();
    // 更新
    TeacherInfo updateTeacherInfo(TeacherInfo teacherInfo);
    // 教师状态更新
    void updateStatus(String id, Integer status);
    // 根据ID查看详情
    TeacherInfo getDetailsById(String id);
    // 根据ID删除
    void deleteTeacherInfo(String id);
    // 根据ID批量删除
    void deleteTeacherInfoList(String idList);
    // 分页查询
    Page<TeacherInfo> specificPageQueryTeacherInfoList(TeacherInfo teacherInfo, int page, int size);
    // 根据学校ID查询所有
    List<TeacherInfo> findAllBySchoolId(Integer schoolId);

    TeacherInfo findTeacherByAccountAndPassword(Integer account, String password);
}
